package com.library.base;

import android.app.Application;

import com.library.base.http.KoHttp;
import com.library.base.http.TokenManager;
import com.library.base.util.CommonUtil;

public class App extends Application {
    private static App mApp;

    public App() {
        this.mApp = this;
    }

    public static App get() {
        return mApp;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        // 初始化ThWeeksApi
        KoHttp.init(BuildConfig.DEBUG, CommonUtil.getDeviceId(this), TokenManager.get(), TokenManager.get());
    }

}
